package com.wenjiang.controller;


import com.wenjiang.common.lang.Result;
import com.wenjiang.service.MallGoodTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lwj
 * @since 2021-07-20
 */
@RestController
@RequestMapping("/mallGoodType")
public class MallGoodTypeController {

    @Autowired
    MallGoodTypeService mallGoodTypeService;

    //获取所有商品分类
    @RequestMapping("/allGoodType")
    public Object getAllGoodType(){
        return mallGoodTypeService.getAllGoodType();
    }

}
